{% load future wenlincms_tags wlcore_tags report_tags %}
<h1 class="pdf-headtitle">九、招标招聘</h1>
<div class="pdf-divbox">
    <h2 class="pdf-secondtitle">8.1 招标信息</h2>
    {% if ztb_objs %}
        <table class="pdf-table">
            <thead>
            <tr>
                <th style="width: 20px;"></th>
                <th style="width: 100px;">发布时间</th>
                <th style="width: 60px;">地区</th>
                <th style="width: 180px;">标题</th>
                <th style="width: 120px;">其他</th>
                <th>正文</th>
            </tr>
            </thead>
            <tbody>
            {% for res in ztb_objs %}
                <tr>
                    <td class="pdf-counter">{{ forloop.counter }}</td>
                    <td>{{ res.fbsj|elfbztbdate }}</td>
                    <td>{{ res.dq }}</td>
                    <td>
                        <h3>{{ res.bt }}</h3>
                    </td>
                    <td>
                        {% if res.gglx %}
                            公告类型: {{ res.gglx }}<br/>
                        {% endif %}
                        {% if res.dljg %}
                            代理机构: {{ res.dljg }}<br/>
                        {% endif %}
                        {% if res.cgr %}
                            <br/>采购人: {{ res.cgr }}<br/>
                        {% endif %}
                        {% if res.cgpm %}
                            采购品目: {{ res.cgpm }}<br/>
                        {% endif %}
                    </td>
                    <td>
                        <p>{{ res.zw|truncatechars:200|safe }}</p>
                    </td>
                </tr>
            {% endfor %}
            </tbody>
        </table>
    {% else %}
        <p class="pdf-nodata">暂无</p>
        <h3>暂无消息</h2>
    {% endif %}
</div>

<div class="pdf-divbox">
    <h2 class="pdf-secondtitle">8.2 招聘信息</h2>
    {% if  zp_objs %}
        <table class="pdf-table">
            <thead>
            <tr>
                <th style="width: 20px;"></th>
                <th style="width: 100px;">发布时间</th>
                <th>职位</th>
                <th style="width: 120px;">工作地点</th>
                <th style="width: 100px;">学历要求</th>
                <th style="width: 100px;">经验要求</th>
                <th style="width: 100px;">待遇</th>
            </tr>
            </thead>
            <tbody>
            {% for res in zp_objs %}
                <tr>
                    <td class="pdf-counter">{{ forloop.counter }}</td>
                    <td>{{ res.posttime|elweizhi }}</td>
                    <td>
                        {% if res.url and res.job_name %}
                            <a href="{{ res.url }}" target="_blank">{{ res.job_name }}</a>
                        {% else %}
                            {{ res.job_name|elweizhi|safe }}
                        {% endif %}
                    </td>
                    <td>{{ res.location|elweizhi }}</td>
                    <td>{{ res.education_requirement|elweizhi }}</td>
                    <td>{{ res.experience_requirement|elweizhi }}</td>
                    <td>{{ res.salary_range|elweizhi }}</td>
                </tr>
            {% endfor %}
            </tbody>
        </table>
    {% else %}
        <p class="pdf-nodata">暂无</p>
    {% endif %}
</div>
